package com.wufan.day06;

/**
 * @author SongWufan
 * @date 2021/3/18 21:44
 */
public class Person1 extends Creature{
    String name;
    int age;

    public Person1() {

    }

    public Person1(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void eat() {
        System.out.println("吃饭");
    }

    public void sleep() {
        System.out.println("睡觉");
    }
}
